package cn.zhou;

public class test3 {
    public static void main(String[] args) {
        int[] a = {100,50,90,60,80,70};
        int min = a[0];
        for (int i = 0; i < a.length; i++) {
            if (a[i]<min) {
                min = a[i];
            }
        }
        System.out.println("所有元素的最小值:"+min);
    }
}
